home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextDeveloper / Examples / EnterpriseObjects / DistributedEO / DEOClient.subproj / DEONotificationCenter.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-17  |  1.5 KB  |  53 lines

  1. /*
  2.    DEONotificationCenter.h created by enoyau on Fri 13-Jan-1995
  3.  
  4.    You may freely copy, distribute, and reuse the code in this example.
  5.    NeXT disclaims any warranty of any kind, expressed or implied, as to its
  6.    fitness for any particular use.
  7. */
  8. // DEONotificationCenter is working like an NSNotificationCenter. However,
  9. // objects used in the API are enterprise objects only. Each
  10. // DEONotificationCenter corresponds to an entity, and encodes the enterprise
  11. // objects belonging to that entity over the wire.
  12.  
  13. #import <eoaccess/eoaccess.h>
  14.  
  15. // Notification names for EO operations
  16. extern NSString *DEOUpdate;
  17. extern NSString *DEOInsert;
  18. extern NSString *DEODelete;
  19.  
  20. @class DEOServerMonitor;
  21.  
  22. @interface DEONotificationCenter : NSObject
  23. {
  24.     EOEntity *entity;
  25.     EODatabaseChannel *databaseChannel;
  26.     NSNotificationCenter *localCenter;
  27.     DEOServerMonitor *monitor;
  28.     NSDictionary *localID;
  29.     id container;
  30. }
  31.  
  32. + (NSString *)localHostname;
  33.  
  34. - initWithDatabaseChannel:(EODatabaseChannel *)aDatabaseChannel
  35.                    entity:(EOEntity *)anEntity;
  36.  
  37. - (void)addObserver:observer
  38.            selector:(SEL)selector
  39.    notificationName:(NSString *)notificationName
  40.              object:object;
  41.  
  42. - (void)removeObserver:observer
  43.       notificationName:(NSString *)notificationName
  44.                 object:object;
  45.  
  46. - (void)removeObserver:observer;
  47.  
  48. - (void)postNotificationName:(NSString *)name object:object;
  49. - (void)postNotificationName:(NSString *)name
  50.                       object:object
  51.                     userInfo:(NSDictionary *)userInfo;
  52. @end
  53.